package co.fitstart.market.dao;

import java.util.List;

import com.demo2do.core.persistence.annotation.Dynamic;
import com.demo2do.core.persistence.annotation.Query;
import com.demo2do.core.persistence.annotation.Variable;

import co.fitstart.entity.market.MarketAchievement;
import co.fitstart.entity.user.User;

@Dynamic("hibernate")
public interface MarketAchievementDao {
    
    /**
     * 
     * @param user
     * @return
     */
    @Query("FROM MarketAchievement WHERE user = :user")
    public List<MarketAchievement> list(@Variable("user") User user);

}
